package com.library.system.modules.examine.service;

import com.library.common.enums.ClassifyEnum;
import com.library.system.modules.examine.entity.Examine;
import com.library.system.modules.examine.vo.ExamineVO;
import com.library.system.modules.examine.bo.ExaminePage;
import com.library.system.modules.examine.bo.ExamineInsert;
import com.library.system.modules.examine.bo.ExamineUpdate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * @Author xyh
 * @Desc 审核表(Examine)表服务接口
 * @Date 2023-10-05 16:35:22
 */
public interface ExamineService extends IService<Examine> {

    /**
     * 分页查询
     */
    IPage<ExamineVO> queryByPage(ExaminePage page);

    /**
     * 根据ID查详情
     */
    ExamineVO queryById(Integer id);

    /**
     * 添加审核
     *
     * @param examineInsert
     * @param classifyEnum
     * @return
     */
    boolean insertExamine(ExamineInsert examineInsert, ClassifyEnum classifyEnum);

    /**
     * 更新审核
     */
    boolean examineUpdate(ExamineUpdate examineUpdate);

    /**
     * 通过主键删除数据
     */
    boolean deleteById(Integer id);

}
